Takes SQS messages and writes them to mongo