[fix] method to do an update in database