Getting documents in summarizer from db + small fixes