Fix db file issues.