This is a contant... maybe a `#define DB_MAX_RETRIES 100` is better for that?