Added analytics
Added database to save cards