added a db method to insert sha1 hashes