Querying postgresql from test vm using pg successfully