_db constants fix