fix up database status