added prepared kwarg to get_db_prep_lookup