Fix formatting in access_model.php and sort by time DESC in messages