Resync database

Reprocesses all documents through the sync function. Required after sync function changes to apply to existing documents.