Quit rebuildng database before runs query.