Bug 585 : change charm model_name to ns_id and adding index to application_name to...