Added feature to now ouput COMMENTs and PIs when the document isread from the database with DBReader.