Hi everyone!

I made a custom Quote module with the use of javascript/DOM (I allow to add a group witch will permit to add products). However, I have some problems for the SQL queries. Here are my questions :

- In witch file(s) are made the SQL queries ? I've searched that for a long time but I can't find it.
- Is there a way to make a logic hook for SQL queries ?

Thanks in advance.