Added verification of chat room in DB; minor fixes
Added retrieval of messages; added stub for writing output file