connect message with database update