Function for loading a pg dump