Add indexes for commits