Cleanup dbagent mysql

These patches clean up DBAgentMySQL and the test for it.
The 1st patch removes the constructor paramter: domainId, which is no longer used.
The 2nd patch removes a global variable from the test code to improve each test independence.