public static function mapClassToTable($className, $dbConn = NULL)
    {
        $demarcation = strrpos($className, '\\', -1);

        if ($demarcation !== false) {
            $table = strtolower(substr($className, $demarcation + 1));
        } else {
            $table = strtolower($className);
        }

		if (is_null($dbConn)) {
			$dbConn = self::makeDbConn();
		}


        if ($table == 'user' || (! self::checkForTable($table, $dbConn))) {
            $table = self::addOrRemoveS($table);

            if (! self::checkForTable($table, $dbConn)) {
                throw new TableDoesNotExistException;
            }
        }

        return $table;
    }