Postgresql: worksaround and test script:
- Uniqe db name to avoid shared memory issue
- Added test script