Fixed issue 1954, re-raising exceptions the right way, thanks Marton
Fixed issue 1962, postgres INSERT ... RETURING id, thanks perakojotgenije
fixed 1961, redirect(..,headers=request.headers), thanks remco.boerma