Fixing crash in listDatabases

ListDatabases crashes when parsing the returned data.  It should parse `res.data` not `res`.