[tests] support for postgresql database