update to local db