make dbname configurable
the beginnings of unit tests

wire it in to setup.py, make sure it deletes the test db between runs.