 pg = require 'pg'
 pgurl = dbconf.postgres
 
-DEBUG_updateRowsLimit =  null  # set for debugging
-OMIT_NULL_VALUE_FIELDS_IN_COMMITMENTS_JSON = true
- 
-PATH = "data/imports/"
-TEMP_DIR = "temp"
-AIDDATA_TEMP_FILE = PATH + TEMP_DIR + "/aiddata.json"
-LOCATIONS_TEMP_FILE = PATH + TEMP_DIR + "/locations.json"
-IMPORT_COMMITMENT_DATES_AS_DATES = true
-
-USE_MONGOIMPORT = true
 
 mongodb = pgclient = null
 

console.log ">>>>>>>>>> Importing AidData >>>>>>>>>>"

fs = require 'fs'

      "end_date" : "end_date"
    
    dateFieldsSelect = (dateFieldQ(f,q) for f,q of dateFields).join(',') 

    query = pgclient.query "
        SELECT
