public function buildDatabase() {
		if ($this->sql) {
			if ($this->sql->query("
				CREATE TABLE IF NOT EXISTS `{$this->table}` (
					`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
					`key` varchar(255) NOT NULL,
					`value` text,
					`validate` text,
					`timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
					`app` varchar(255) NOT NULL DEFAULT '',
					PRIMARY KEY (`id`)
				);
			")) {
				$this->initialized = true;
				
				/* Upgrade pre-v1.2 app_metadata tables to include independent IDs */
				$this->sql->query("
					ALTER TABLE `{$this->table}`
						DROP PRIMARY KEY,
						ADD `id` INT(11) UNSIGNED PRIMARY KEY AUTO_INCREMENT FIRST;
				");
			}
		}
		return $this->initialized;
	}