SQL stuff for scoreboard tips