convert Quotes to an ActiveRecord model