Update moreadvancedapps.rst

rewrite of the postgres decorator section