Switch to postgresql connection