def dblist(): cnxn = Connection(cfg.db_system, cfg.db_server, cfg.db_uid, cfg.db_pwd, cfg.db_name) return {'data': {'records': cnxn.get_databases()}}