refactor JDBC insert