rdas and the R code for connecting postgresql