Fix quickcheck test for duplicate keys.

It turns out that the database code works fine but the `testing/quick` test wasn't accounting for overwriting keys. This pull request fixes that so that the current dataset is emulated as a map.

Fixes #80.