mysql changes from junaid.

added a bunch of mysql shiattt