cards saving to database for users working