Misabuse of databases is probably the most costly performance related issue when optimizing a website.