Fixed several problems/bugs with my changes to econ_events.

Problems included syntax errors, failure to delete a certain portion,
and wrong use of the API. They've all been fixed and it seems to
work fine now (I actually checked this time).