fixed the db checker