Update md_event.php

model for event table queries