Refactored part of DatabaseConnection. Updated gitignore. Fixed a small part of UDPServer.