[DB] Fix creating db.