Changed input in constructor for reading from db: chain->chaincode Now getgraphid initialises too the internal chain code (pchain_code from graph db)