* Connects to the database as specified in config.php
*/
public static function connect(){
if(self::$connection){
return;
}
if(class_exists('PDO') && OC_Config::getValue('installed', false)){//check if we can use PDO, else use MDB2 (instalation always needs to be done my mdb2)