Fixing error in SQL script for Average MP.
Moving price history into its own file. We'll run this one daily at 1:25am. We MIGHT generate the actualy price history hourly, but only run the script that updates the metadata every day. Not sure whether or not that will provide accurate enough data though.