mod. move connection setup and tear-down into query_calls for revert_rate.
add. DB_MAP to data_loader module.  mapping between project and db instance.  Replaced some instance refs in query_calls module