Implement flush for JDBC driver
Add save loop to JDBC driver