sql.py: put_table(): Handle DuplicateKeyExceptions by running a select query on the unique constraint columns
sql.py: put_table(): Handle DuplicateKeyExceptions by running a select query on the unique constraint columns