update dao and  change key to long id