test against postgresql database