Connection class adjusted & logs cleared

In a test the connection class didn’t work and the PHP log had loads of
test data. This has been corrected.