initial memory store if it is undefined before saving database. refs item:763
Merge pull request #485 from tlvince/bug/init-memory-store-on-migration

initial memory store if it is undefined before saving database. refs item:763