The R file to connect postgreSQL and data