fix userdao bugs + finish products query