Fixing mysql grant class