an attempt at a minimal in-memory sql database