read documents in backend