Better SQL profiler.

Conflicts:
	main.coffee
Trying to fix everything.
Lint.
Merge branch 'master' into turns_and_priorities