saving new message to db