Fixed meta dir path bug in xidb.js
Added script to update metadata
Renamed metadata script
Refactored metadata index feature