Removing old connect function in extract.php