I need to read the data from one DB, crunch it and then save it to a new DB, keeping the formating: time, val_A, val_B for 7 days. Practicaly, there are 7 tables in each DB.