add document queries, dao and services