creating event working nicely. Need to add database functionality