Database segmentation

Multiple bug fixes:
Sanitization of motto
Crash fix in game
Client connection cleaned up with more debugging support