put cards into db