SYNC-279 - adding index to sync_record.timestamp, sync_record.state

https://tickets.openmrs.org/browse/SYNC-279