added a form that inserts a message to the database