Remove dependency on the DatabaseSimple library.
Move global variables into the new classes. That may allow multiple update threads for multiple databases one day.