removed post.php dependency
added fetchevents and insertevent for eventmodule