private synchronized boolean addFile(Client c, FishFile file) {
        boolean found = false;
        try {
            dataBase.insert(file.getFilename(), c.getClientName(), c.getNetResources().getSocket().getRemoteSocketAddress().toString());
        } catch (Exception ex) {
            Logger.getLogger(FishServer.class.getName()).log(Level.SEVERE, null, ex);
        }
        for (Map.Entry<FishFile, Client> entry : filesMap.entrySet()) {
            if (found) {
                break;
            }
            FishFile fileInMap = entry.getKey();
            if ((fileInMap.getFilename().compareTo(file.getFilename()) == 0)
                    && fileInMap.getOwner().equals(c)) {
                found = true;
            }
        }

        if (!found) {
            this.filesMap.put(file, c);
        }
        return !found;

    }