made a few changes to insertRecord

and fixed the name of insert cities