Initial work on computing hashes for custom SQL elements. refs #451