if not exists (select * FROM sys.sysobjects where id = object_id(N'dbo.DatabaseInfo')) BEGIN
  create table dbo.DatabaseInfo (DatabaseVersion int constraint PK_DatabaseInfo primary key clustered);
  INSERT INTO dbo.DatabaseInfo (DatabaseVersion) VALUES (0);
END;