Added fix for imcompelete db.