use postgresql for test environment
tidy-up