Added sql to get doc type properties.