Finished the implementation of splitting local and central database code.
Now it build, but requires testing on synchronization.