dbmanager: fix column renaming
postgres provider: reload fields if a cursor query fails (fixes #8242)