Converted account report old to new api

Hello

I have converted postgres report old to new API.

thanks.
No need to use with_context here. it will give error also, variable not defined ;)