fix bug where db content is printed to screen