Java based simple db to understand database internals