update the .php files for functionality with connectOld.php