Switches to postgres