Admin dbi

CREATE DATABASE and DROP DATABASE are now done with a DBI connection instead of running the postgres tools from the command line.

This branch also removes some obsolete cruft.