fixed creation of new database