Node.js and Electron Applications

Can anyone help me out with Electron. I am creating an application and I know how to code the functionality, but what I need to know is how to store user information inside the application. When I reload the application or restart it, any information I had input simulating a user’s content is gone. I was thinking of creating a database, but I am having trouble linking to mysql. Thanks

What have you tried when getting MySQL to work? Have to taken a look at KnexJS?