Now reading legal documents from database instead of file