created a connect.php and updated files to correspond