Changed created_at field to modified_at.
Moved out model code from web.rb.