Allow passing a query to synchronize

Allows syncing a subset of the total documents in mongo