fixed duplicate ids in populate-sql  (duble 2)