PHP library which store hierarchical tree structures into database