refactoring profile and content to datamapper