Start saving state in nodejs via mysql