Rewrite driver to extend JDBCDriver instead of copying lots of its code