add client implemented
tidy up
error message included in header
a test class to test php mysql codes