update deprecated methods

change find_by_ to find_by(
change update_attributes to update