Refactor of DatabaseConnection. Update gitignore. Fixed a small part of UDPServer.