Add inherits to postgres. Updated dialect-specific methods.