opening up database and printing dump of messages