load raw data from postgresql