if not exists (select * from sys.indexes where name = 'IX_Connections_Version_with_includes' AND object_id = object_id('dbo.Connections'))
	create nonclustered index IX_Connections_Version_with_includes on dbo.Connections (Version) include (ID, Data, SecurityGroup, RepositoryID, AttachmentCount, AttachmentPrivateCount, TodoOpenCount, HandbookCount, InventoryReportCount)