add data model and query command