fix to pgdb sync