Restructured configuration retrieval
Added DB driver using PDO