Improve organisation of database code
Add missing xml dependency for phpunit
Add new Schema object for interacting with a database schema.
Add a Select test case.
Handle '*' in select list correctly.