Added query to create database