populate events table