Create new MyHandler instances for each request
Currently the MyHandler class processes multiple requests which are all accessing the global entity object. That approach is prone to race conditions and can easily cause false data entered into the database. There should be a new separate instance for each request handled to prevent that problem.