Fixed use of parameters in mysql::query + added defaults

It seems like orginally the mysql file .my.cfg wasn't used, plus the parameters host, password & username weren't used in the command yet.