Start of a SQLite pagetable

Still super early and don't have SQLite custom memory allocator working
yet, but all the parts are there.