Fix scoping problem. Fixes #38.
Add tests for Database#delete.
Merge pull request #39 from minad/fix_38

Fix scoping problem. Fixes #38.