CreateDatabaseQuery and it's test