Ok, I found the issue... The above code is correct and the problem was with a script that I have on sublime
to relaunch the simulator when I save the file and what was happenning is that somehow, the script was relaunching the simulator 2 consecutive times and due to the many prints that I have, I didn't saw the correct output above on the console...
I will keep this question here just because there could be someone else that want to know how to update the database version on corona/lua.