mess check checks for loose foreign keys