Remove pointer to db from dictionary on close, allows us to close db and reopen in same session
Merge pull request #2 from stormtek/master

Fixed bug in closing db