Switches to pg database