Can we fine tune a model to get data from MySQL database?

I have a huge database of users in MySQL.

I want to create something with open ai which helps users and managers to use my software better. The AI tool has to take questions from the user/manager, like “When user _____ had last accessed ___ app?” And it has to figure out how to get this info from DB, which table to look into, etc. And has to give a correct answer to the user/manager.

Can anyone suggest to me steps to take to create something in Python and open ai which can give me answers to any questions asked from MySQL db?

Or at least can someone help me fine-tune a model for it?