fixed primary key problem in db and switched order of addresses in path