- Subclass QSqlQuery to allow for retry logic if the DB is locked.
- Alter the sync chunk sizes.
Correct duplicate SQL exec on attachment index.