DbClass added

Has a memory issue on exit, but otherwise, it's clean