Change the SQL query on line 58 to use active record;