Bugfix for @with_ngi_config, start reworking Charon database access functionality 

Maybe also wise to build this into the get/post/put/delete functions