Moved DataMapper stuff out of controllers and into models