Add a 2-sec delay after opening the serial port, to wait for MCU to reset
Add database connection logic