multi-db mysql fixes2