fixed creating new database