updated message_model.php