renamed the hook to be the name for 3.5.1
added a class for saving data to db; only inserting works when creating a new event
defined a constant for the events meta table