begin categorymover + support redirect sql query