consistent use of db_name