Minor MYSQL mods