bug fix for oplog + basic structure for sync service