public void start() throws DataBaseServerException {
        initDBManager();
        try {
            httpServer = HttpServer.create(new InetSocketAddress(serverPort), 10);
        } catch (IOException exception) {
            throw new DataBaseServerException("Unable to start database server");
        }
        httpServer.createContext("/", new HttpRequestHandler());
        httpServer.start();
    }