I may be misunderstanding the question, but uploading a CSV into the Anvil DataTable service (which acts as database) will accomplish what you are describing. That is, it will allow you to pull values from the database into your forms.
Note that you may also consider using the Uplink service from Anvil which will allow you to send data from your local computer up to the Anvil DataTable (database). Described here:
It would be helpful if you could show us what you have tried, or even a similar example that might make it clearer what you are looking to accomplish. Have you tried looking at the DataTables service documentation?
Lastly, if possible please try to post new questions as a new topic. This makes topics easier to find on the forum. Please read some helpful suggestions below.