Fix #20

All messages are now saved in database properly.