Data load

I completely rework the script to load data into the database