Add index on repository_id, event_type, state and branch for builds