added clientside code to request list of table names
merging with mukarram's commit