- refine key database storage method