Database maintenance scripting - is it possible?

Hi,
I understand that I can import/export CSV to my bubble database. What other tools do I have to maintain the database?
For example, I’m loading two tables (“Things”) from two CSVs but then I want to have an IDs column in one table linking to entries on the other table. Is there some scripting ability to allow me to populate/update my app database?

Anyone ?