fixed query to prevent rank of 0
fixing small bug in daemon
Merge branch 'master' into mysql

Conflicts:
	plugins/trueskill.smx