Tidied up path issues for the database

I've now got the dances database displaying in the Winchester clubsite.
This has meant an update to the database construct function to use
$page->rootpath to find out how to get to the database ini file.

Next job is to work on the database queries so we can pick out only
those dances that relate to a specific club.