change test db on postgresql and fix example file issue #9