test connecting to postgresql