fix some file errors for the DBs