public void stop() throws DataBaseServerException {
        httpServer.stop(0);
        try {
            System.out.println("Making data backup...");
            dbManager.makeBackup();
            dbManager.stop();
            System.out.println("Backup is made successfully");
        } catch (IOException e) {
            throw new DataBaseServerException("Unable to write data to backup", e);
        }
    }