Allow createConnection and createPool to take a config object instead of a url