First you may wan to use the newest realesed Arduino IoT board: Arduino MKR series, such as the Arduino MKR Wifi 1010 which has embeded the widely-used ESP32 module on board. Alternative, use conventional Arduino boards working with ethernet shield.For connecting to database, you can simply use XAMPP, a free-source web server solution, creat the databased and send/receive data from Arduino, similar to: https://www.instructables.com/id/PART-1-Send-Arduino-data-to-the-Web-PHP-MySQL-D3js/