Fix db init issue.