Add code to load data into a postgres db