How to modify node-red deploy operation to save flow to database

I think the goal is to get the multi-user approach mentioned in this very first post, each user getting their own flows: