Add missing commit in JdbcDataWriter, close #1745