Server side code for a Social Golf Application