Updated PostgreSQL connection fix for ObjectManager.