Move fillTableTypes from SqlAdapter to child adapters
Some changes for compatibility with PostgreSQL
Add PostgreSQL support