cleaned up database code
schedule: removed unnecessary code
callback for signal level changes
comments cleanup