fix the exception of db file not found