[DB] Fix db creating.