Automated Garden with database (project feasibility)

Hi, i really appreciate some guidance, i´m making a school project (automated garden) and i want to be able to change for example the fan speed according to a database ( if i´m planting a cactus y want the fan speed goes 0% and if i want other plant it must change according to the database) i´m really lost like way lost ,i thanks! (sorry for my broken english)

P.S: im using a arduino MEGA 2560, and for the IoT part i got a Node MCU v3.

Start at reading the arduino docs, get some book about basic electronics

Which database will you use? Where will you host it?

Define clearly exactly what you want your system to do and what it will not do.
You say you want one fan speed for one plant and another fan speed for another plant, you need to be clear how the system will be told which plant it is dealing with.

Always keep things simple.

This is a school project so keep in mind how long you have to do the project and what points will be awarded for.
Make sure that the project is defined so that you can cover all the things you get points for in the time available.

Start by just getting an LED to blink on and off (pretend it is a fan). Use this as a guide;

Next get the LED to blink at different rates depending on what plant you have.
You need to think about how you are going to do that.

Once you have your LED working you can try to use a fan. Will it be a small battery powered fan or a mains operated one. For a school project you should use a battery fan (safer). You will need to figure out how to connect the fan to the Arduino and how to get the Arduino to change the fan speed (so pick a fan that this will be easy to do with)

Good luck. You’ll be much better off without a database, an OLED and some buttons that determine when to turn stuff on and off. In other words, isolate the problem to the Arduino and attached components rather than trying to bring in a database. Otherwise, Android Things and AdafruitIO have backend drop ins.