Update sitemap.php

Moved DB connection to top for cleanness.