Removed Socket classes - too many problems with these :(
Medium rewrite of Database layer to abstract out MySQL engine specifics