Fix ER diagramm and begin of Rule manager