Other mysql fixes