Making guid field an md5 hash.

This is due to some issues with mysql indexes on text fields and
in order to simplify all over.