After some testing with my colleagues, Hamachi is not the best way to put this server, as they were experiencing 10 second lags randomly across the gameplay. Still the idea of putting the server to LAN or any other VPN service that is better than hamachi makes me want to go deeper in this experiment.
It is actually very simple if you know what to do:
First of all, making the SQL server localhost and making the server connect to it from another IP is really slow and I think that's why the connection was lagging with the other hosts.
Very insecure method, if you don't know what you are doing, please avoid unless your connection is protected via external ways.
Later tader, and thank you all!