Bug fix for the DB if the ID field in the ID table is missing