changing the postgresql module to use grep to check if table exists already rather than looking for the PG_VERSION file