also wrap dbresults and dbnextrow using macros