update dao pattern