added some features on displaying DB output