public void endTransaction(boolean commit) {
		
		//logger.entering("server.database.Database", "endTransaction");
		
		// TODO: Commit or rollback the transaction and close the connection
		try {
			if (commit == true) {
				connection.commit();
			} else {
				connection.rollback();
			}
		} 
		catch (SQLException e) { e.printStackTrace(); }
		finally { try {connection.close();} catch (SQLException e) {}}
		
		connection = null;
		//logger.fine("TODO: Commit or rollback the transaction and close the connection");
		
		//logger.exiting("server.database.Database", "endTransaction");
	}