Server Nearly Done
Added some stuff

- Logging writes to log file.

- Tidy up.

- Database logging chat.