changed quota_map to quotas, added sql references to tcl