Updated db script to create a deferrable entry
Removed deferrable from device types
fixed schedule manager bug