How do I connect Libre Office 5.0 to a remote database?

I need to connect Libre Office 5.0 base to get data from a vendor in either an xml or a csv (pipe delimited) data feed to create a table. I need to perform a lot of logic against the table after importing. The file has about 200 categories and about 3500 records. It is also about 6.5 Mb.