Added the cards and connected to db