finished cleaning up in db