more code clean up and migrations
setting table to correct type
adding the scheduler and require sources to make sure we include all the code in coverage