added logging and more error reporting
added more tests and test fixtures
added test fixtures for PostgreSQL