upgrade gems

I noticed my rubygems were way out of date when I was looking through
the ActiveRecord documentation. Until I find a reason to stay with an
old version of a gem I should be working with the most recent versions.
update ActiveRecord syntax for 4.0.3

using #find_by is more efficient than #first becuase it limits the
results directly in the query rather than converting it to an array
first.