self updating version, use DB as replaces
change title
new update logic, with some update and delete ad-hoc code