Setup code to make postgresql tests run