Update with DB code