Updated R postgres script to work with NCEAS DB.