include casedb for autoselect assertions
Merge pull request #3497 from dimagi/casedb

include casedb for autoselect assertions