Closing PreparedStatement after execution

Fixes the "open cursors exceeded" error on Oracle when executing a log of changes with prepared statement inserts.