Local db now stores flags as array

(instead of dictionary)