Added sub_cats control in insert.php