Server side code for a social golf application