save card size in database