updated hero mapper class for using with database