@Override
	public boolean checkTable(String table) {
		try
		{
			Connection connection = open();
			Statement statement = connection.createStatement();

			ResultSet result = statement.executeQuery("SELECT * FROM " + table);
			boolean check = false;
			if (result != null)
				check = true;
			result.close();
			statement.close();
			connection.close();
			return check;
		}
		catch (SQLException e)
		{
			if (e.getMessage().contains("exist"))
			{
				return false;
			}
			else
			{
				this.writeError("Error in SQL query: " + e.getMessage(), false);
			}
		}

		//TODO fix
		if (select("SELECT * FROM " + table) == null)
			return true;
		return false;
	}