Thanks planetsim. I have a portal that uses quite a few queries, and almost every include needs the database connection, so I don't really close it anywhere.
The problem is, inside this portal there is also a forum and the users recently started complaining that the pages are taking longer to load. I know this could be due to other things other then the database, but since I have included a bunch of new pages to the portal I was thinking this had something to do with the recent slowdown.
I´ll try to find that topic you were referring to. Thanks!!