stop writing to postgres