Moved monitor and tasks_queue to monitor.db