An R package for reading from and writing to a PostgreSQL database