Downloading a CSV file from a database

Hello,
I’m making a dashboard for a client and the client wanted a simple button that jus downloads a filtered version of their database collection, as well as uploading.

they are aware of going into the database and downloading from there, but they really wants that function from my dashboard.