Performed refactoring on mysql classes so that the connection details are provided as a separate class to the command.