Find 'totalReceived' for multiple addresses at once?

Currently there is
/insight-api/addr/[:addr]/totalReceived - which queries only one address.
I am trying to add to the insight api something like : /insight-api/addrress/oneadress,secondaddress/totalReceived

addressindex=1 exists in the config file btw…
How to query the bitcore database so I can run a custom query on it ?

PS: not a feature request, I’ll be modifying the insight-api/bitcore core or anything else required myself.

tldr: Hints for querying the bitcore database.