add db update method