Squashed bugs

A bug in descriptives is squashed. This meant any missing columns
affected what could be analysed. The creation of the descriptives table
has also been improved (along with minor changes to tabler.py), and
I've created a new (currently empty) file for importing from a database.