in-progress commit --> insertTable --> calling connection.query not working as expected (sometimes works)