Created tables for validation and caching nearest neighbors. Added demo events