Moving setOrder to Db.php