Added dimenstion Metadataid. Added missing initalization in PgReader. Must be connected to db before fetching pcid