checked for existence of messages before committing to 
db store in genexhange (sql error drB noted in tests)