Few fixes in mysql utility module and testsuite