Fixed empty string bug in team addition sql query and added legend

It should be noted that the string issue fix is not ideal.
Instead of converting "" to "NULL" the union of
[-1] and the array of user ids to be selected over is taken
before join()-ing. No user ID should ever match -1, so this
works for now