Initial implementation of :memory: db handling.