added classes for database and support connection for websocket