pass the whole config object to mysql