added connect.php to config dir and removed some code from root/index