Refactor ProfileService to consume AtomEntity

All test cases for profile Service are passing