adding correct method for printing out a card based on a sql command