Added check for foreign keys missing indexes by Josh Berkus