Use files.read function everywhere
rm old type attrs from object db js objects
Put tree attr on tree object to make tree check easy