missing output variable declaration in switchdb.sql
Thanks Ernst