fixed --current-db query for IBM DB2