add the version, norelations in comments and fix multi foreign keys (by ignoring them)