Adjustements in metadatahelpers and bugfixing some open connections in other helpers