cache db can be opened just one time.