added queries for find_by functions