identify parent by id from db