• Thanks for the advice. I will try to do the data manipulation in SQL