Added switch -sync-to-pg