Fix missing "id" field in db json output.