Add support for pgsql in Core Model