Modified code organization a bit. Generalized database to handle multiple events instead of only just one.