In that case indeed Serial is your solution.
Have some application running on your computer that connects to the USB port, then reads the commands from the Arduino, queries the database, and returns the result.
In that case indeed Serial is your solution.
Have some application running on your computer that connects to the USB port, then reads the commands from the Arduino, queries the database, and returns the result.