protected function queryWithIndex($sql,$index,$findex=NULL,$bindparams=NULL) {
		if ($result = $this->executeQuery($sql,$bindparams)) {
			$temp = array();
			if ($findex) {
				foreach ($result as $row) {
					$temp[$row[$findex]][$row[$index]] = $row;
				}
			} else {
				foreach ($result as $row) {
					$temp[$row[$index]] = $row;
				}
			}
			return $temp;
		}
		return false;
	}