add postgres plugin for dropping and creating test database
refactor integration tests