public static boolean updateProposal(Proposal p) {
        if (MongoHelper.query("{id:" + p.getId() + "}", Proposal.class, "proposals").iterator().hasNext()) {
            if (MongoHelper.save(p, "proposals")) {
                return true;
            }
        }
        return false;
    }