Entering names from treestore into database