'Insert series of hash => song_id, offset
values into the database.'

def insert_hashes(self, sid, hashes):

    values = []
    for (hash, offset) in hashes:
        values.append((hash, sid, offset))
    with self.cursor() as cur:
        for split_values in grouper(values, 1000):
            cur.executemany(self.INSERT_FINGERPRINT, split_values)
