Update tables.php order