Changed sha to hex for database purposes
changed to sha1_hex
changed to sha1_hex