Move PostgresqlPlugIn to modern architecture (WO 5.4)