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