Extracting static cycle data to postgres