This updates the adjust_planner() procedure to take into account the new events schema (the `event` view has been replaced by `event_log`). Fixes #208.