Reworked controller to pass card data from mongodb.