Resolve "[SQL] Query for person statistics in week overview takes very long" Closes #149 See merge request !164