Ignore SQLite database in git. Refactor scheduler into three subsystems.