Code to populate the location and parentlocation tables - waiting on Sindhu's change, will update post that