remove sqlite and database logic.

It compiles, but it is probably a good idea to test this with a working server (with C and B packages) before we merge this PR.