changed name of CardProvider to CardLibrary
add datamodel for card ownership persistence