Added additional keys to create.sql to match changes added last patch that didn't get applied. Added additional error checking to the device_templates page.  closes #151