in reply to Tree Traversal Script/Nested Sets

You might want to convert you source data to YAML, it looks pretty close already. YAML is usually less clunky than XML.

As for the database loading, it might be easier to use the database's load tool (I don't know about sqllite)

3000 records is pretty small you should consider just using the YAML (depending on your querying needs).