Added metadata structure, mongo metadata