fixed retrieved columns in getTree method
added parent_id column to simplify queries, fixed wrong tree construction, updated tests and docs