Fix db refresh issue.