Save card edits in the database