fixed the DB performance issues (lazy=joined for membership relations)