move collection and database mapping to the object mapper so they can
easily be overridden.