add select display support; plus the -n flag in command line parameter
fix display of db number out of range