Refactored model classes.
Renamed module DB to Model.
Changed ORM from DataMapper to ActiveRecord, because DataMapper is no longer maintained.