added posdiff calculation to csv import script, cleaning ident problems in some migrations file