Performance

Replaced view v_event_nr by queries in the application. Huge performance impact.