refactor route/controller on a model I understand more, first POC of using elasticsearch as database