Removed un-necessary AccountDb assignment, moved to using couch_mgr:open_cache_doc (incl the system_config db) and defined input_term()