The current model assumes that local db is correct and goes with it. It would be better if a syncing function automatically takes care of that.