extracted DAOhelper interface and wrote mock dao, tidy up weightentrydialogtest