handle broken sha1 in database