I have a database info in a text file. Now, I don't know how to integrate it or upload it on my Wix website. Please help me with this.

Click add image, select this txt file and upload.
After it’s got uploaded, hover over the file, click the little menu button that appears on its right and click “Copy URL”.
Then add an htmlComponent to your site, set it to “Website address” and paste the copied URL in the “Website address” slot.

And if you don’t want to display it, but to extract the data, then use fetch() to do it (after you uploaded the file and copied the url.
Like:

import {fetch} from 'wix-fetch';
fetch("https://5361b474-b6b7-4a60-afa5-eb7a001ddcee.usrfiles.com/ugd/5361b4_3d3571abffc3445caac9b59bc19e45f0.txt").then(r => r.text()).then(txt => txt);

And continue from here.