error message parsing
minor style changes
move test db user/pass to tests/config.py
tests/config.py -> tests/config.py-dist
stubbing out some database methods