it really depends on the source of your output and whether or not you need truly dynamic content. for static pages, there's no need for a db connection at all. if you want dynamic content without using a database, you can always use an xml file as your source.