add doc_type to sql index