Removed a use of find_by_sql