adds rake task to generate teams query table