Use minimum recommended PostgreSQL version to run our tests
What does this MR do?
Changes PostgreSQL version from 9.2 to 9.6 in places where we weren't using bundled PostgreSQL from a docker image.
9.6 is the minimum required version: https://docs.gitlab.com/ee/install/requirements.html#postgresql-requirements