fix HashMapper to save all data to database