Fixed an issue where stompSend would keep sending the last mails recieved..
Spelling errors fixed
Make sure the DB doesn't just lose connection
Updated a few minor things on stompReceive
Added transactions to stompSend, to make sure data is actually sent, it would sometimes skip over a mail or two otherwise
Updated stompSend, so it actually sends out manual mails aswell, but only for the map
Since adding the transaction stuff to the stompSender, messages have been "stuck" in the apollo server, adding ->headers["message-id"] to $frame seems to solve it.. Might be snake oil tho
Move the transaction stuff around a bit, no need to commit several transactions, when we can commit several items with one transaction..