proper ordering of transaction selection in ota restore
Merge pull request #165 from dimagi/ota-fix

proper ordering of transaction selection in ota restore