Bugfixes:
1. Some typos in the code.
2. Fix some ReQL queries.
3. Fix some broken functionality.
4. Scheduler fix.