change the way to create the database