Reduce overhead.
Move global variables into the new classes. That may allow multiple update threads for multiple databases one day.