Changes for zohocrm export. 'still lots to do with db_query. Major testing reqd.