changes on db and selfreferencing