Updated fallback logic to also check old SQL auto-incrementing id
Updated fallback logic to also check old SQL auto-incrementing id

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq