Main module; made chan->conn work with c3p0 managed connections