db: print mem usage of statements