Working on saving messages to db upon receiving them from client