Bugfix for @with_ngi_config, start reworking Charon database access functionality