Java Backend for storing events