Compute md5 hashs by Postgres