start refactoring to add automatic model inference based on the information schema to the postgres driver