socket.io mysql api with entity manager