Adding clear query for models