Method to extract only source code/document from DB (or single thesis)