Better Understanding Database Architecture

How to improve the sql queries of the AI ide, it seems like it’s not enough that it’s scanning the files and learning from the existing queries. I want to give it access to my database so it will learn the architecture, is it possible somehow? or maybe some other idea ?