Fixes invalid assert.
Assert cleanup.
Less verbose logging.
Fixes old bug in assert.

Using dictionaries as bindings would test the dictionary keys instead of
the dictionary values.
Updated docstring.
Merge pull request #157 from boudewijn-tribler/database-assert

Fixes invalid assert