fix null key in mysql to hash key