Fully analysis and data ready to upload

Just needs to connect to the DB now.