reordering functions in account_dao