Pass DB connection to get_db_prep_value