I wanted to integrate an API that I have from a project and add it as a database, so that the ChatGPT API can respond to me by querying this data
If you still want to, that sounds like something you can accomplish with functions that the AI model can call, and which you fulfill the request for more information with your code.