fixed mySQL db connectivity