i meant, that if you used the switchboard wizard to create the switchboard - it creates a table called switchboard items
you can either re-invoke the wizard to manage your menu, but you can easily do it by editing the table directly.
you shouldn't need to enter the sort of code you did, as the switchboard manager the wizard designs handles all this automatically.