form to create events and the pl/pgsql code that stores the event and associates with a project