removed code and added so the dbQuery only return if have result