saves messages from senders to db