Use mysql hash rather than commandline mysql