updated servlet code for achievement tracking for mobile app