Rework logic of persistent local browser storage API functions, add another parameter to better define db sections
Merge out with upstream