showdb select query corrected