Fix creating new database.