Postgresql Variable Assignment In R