Updating and adding queries are done by daily basis (bugs, new stuff etc). The REST logic is basic, it may be changed monthly or even only some times a year.
But then you have 2 choices left. Database or templates. Which one is the best approach? Speed and easy to maintain?