Reformatted connect.php to avoid using useless loggers.
Removed other code that wasn't being used / was causing issues