modified create database