adding in the api end point for getting an event, also refactored the dump_table_json convienence function