P2: Transform raw data collection into structured database