routine to export chembl tables