change the way of create database