Improving detection of types and auto increment for Postgres.