changed dao, added set method to update objects.