add dbid and path to json object