Reduce SN load

SN can be optimised in various ways to have less SQL queries.

http://phpbbsocialnetwork.com/viewtopic.php?f=44&t=4672