made Postgres data work