Fixes bogus assertion failure.
Decouples db/update/Remove.cpp from global variables.
Move global variables into the new classes. That may allow multiple update threads for multiple databases one day.