adding connect.php and functions.php