Allow createConnection and createPool to take a connection object as dbUrl

I managed to pass all tests except the "pools_and_transactions" test. I can't figure out what wrong with it. Could you help?