Use JDBC Wrapper API for type checks

Use java.sql.Wrapper.isWrapperFor instead of instanceof keyword for type check verifications.