catch syntax and restoring of postgresql dbUpdates