Data preparation

Prepare and clean the data to create the base table(s).