Clean up current data so it can be used for graphs and so it will be ready for the database when its ready.