create database entry for chat message