fix find_all_by method to catch attributes that include id
Refactor method for find_all_by and find_by to catch attributes that include id