public Connection getConnection()
	{
		try
		{
			if(connection==null||connection.isClosed())
				connection = 
				DriverManager.getConnection("jdbc:hsqldb:hsql://localhost/workdb");
		}catch(SQLException ex)
		{
			ex.printStackTrace();
		}
		return connection;
	}