Added close to prepared statement

PreparedStatement object returned from PreparedStatementFactory was not being closed, so database resources are not being released; this caused problems when working with a large Oracle database with thousands of records being added.