automation data model, CRUD template, Mongoose Query Listener