server side code for the PhoneGuardian App