public boolean execQuery(String command) throws SQLException
	{
		boolean value = false;
		Connection connection = null;
		Statement statement = null;
		ResultSet result = null;

		try
		{

			Class.forName(driver);
			connection = DriverManager.getConnection(url, username, passwd);
			statement = connection.createStatement();
			result = statement.executeQuery(command);
			value = true;

			result.close();
			result = null;
			statement.close();
			statement = null;
			connection.close();
			connection = null;
		}

		catch (Exception e)
		{
			System.out.println(e);
			value = false;
		}
		finally
		{

			if (result != null)
			{
				try
				{
					result.close();
				}
				catch (SQLException e)
				{
					System.out.println(e);
				}
				result = null;
			}
			if (statement != null)
			{
				try
				{
					statement.close();
				}
				catch (SQLException e)
				{
					System.out.println(e);
				}
				statement = null;
			}
			if (connection != null)
			{
				try
				{
					connection.close();
				}
				catch (SQLException e)
				{
					System.out.println(e);
				}
				connection = null;
			}
		}

		return value;
	}