save model in queryhandler