public function __construct($type, array $options, $prefix = 'Pop\\Db\\Adapter\\')
{
$this->isPdo = strtolower($type) == 'pdo';
$class = $prefix . ucfirst(strtolower($type));
if (!class_exists($class)) {
throw new Exception('Error: That database adapter class does not exist.');
}
$this->adapter = new $class($options);
}