DB: add mark deleted and associated pieces
DB: add mark deleted and associated pieces

Basically this should set/unset the deleted flag appropriately in
the database

arbenina/syncdiff,arbenina/syncdiff,arbenina/syncdiff,warthog9/syncdiff,warthog9/syncdiff,warthog9/syncdiff