Converted connect and disconnect functions of SQL class to PDO