switches to postgres