Recursive function working

A database lookup for parent contexts of an item