NODEMCU - SMART IR CONTROLLER

Hello everbody,
After a long period of time I took my NodeMCU out of box and started to use it. I want to connect it to MYSQL but I don't have any idea how to do it and what is the best way in order to do it. I want to create with it a small project, the porject includes an IR Reciver and IR LEDs which will turn on/off the appliances from an application that I'll create by myself. The project will be same as the product BraodLine RM mini 3 but with more features and stuff. I have to make it work as fast as possible and as best as it could be. What is the best and easiest way to connect the NodeMCU to the mysql server in order to read and write information everytime and to make my project work without any problems?
Thanks!

Help from somebody?