sql export / search count upper succes