Script to copy raw data into database