Cleanup up dead code and database tables from task scheduler

Turns out there was a lot of code and various database tables that had
no functionality at all