Add column job_attempts and index job_cmd_token_id to PostgreSQL.

* (bug 43416) This ports cd000590ee694af73edb05b5e37b60b5e2b77fd5.

Change-Id: I3d4c7d906f6465b3a054df2fc0cd8f564173ed2b