Complete sqlite custom memory allocator.

Tested and works on Linux.