Polish DB value store, misc fixes