Store information about build retry in the database
Description
Checking if the build was retried is time consuming operation.
Proposal
Storing information about build retry in the database may improve performance.
Idea from @ayufan during Slack conversation :)