add doc_type to sql index
Merge pull request #2907 from dimagi/sofatype

add doc_type to sql index