Remove old python-sql library, since I've fixed the issue that resulted in the requirement for a patched version.
Patched up deduper to do at least some simple binary deduplication.
Fair bit of cleanup relating to the fact that the api for the database has changed a lot, and there is a lot of old, broken code.