working select of comp's cards from db