MD5 fix for issue #546 

Tested with a few queries, should be okay, lmk if i missed something.
@mintsoft We discussed that in #546. If you add it to the tirggers, it won't give you the md5 of "hash" if you just type `md5 hash`. That's why he's doing it this way.