Refactored mappers to json and db utility classes.