Added metadata and init for metadata tables