Pass $BASEURL to Router

The first argument to Router() should be the root URL of the site,
not the filesystem path of the site root.
Require PEAR DB for DataAccessLayer