NXP-12457 fix sqlite errors when synching folders with more than 1000 children
NXP-12457 revert wrong index on last known state
NXP-12457: Make page size configurable for delete detection query
NXP-12457: Add functional test for paged delete detection query
NXP-12457: Format / cleanup