save card to database with remove function