retrieve data from Validic and postgres