refactoring after db-1 lesson. get_parent and get_childer functionality added