Added query creating database