extract db test runner into pg-test
try to fix travis for db