added update in dao and associated tests