Java backend servlet for frontend to access data