Add bot tasks and queue structure. Add db commits. Fix matchmaker bug.