use where method to find models when find_all_by_id is not available