Postgresql Trigger For Each Row Of Data Frame In R