model/customer relationship working, fixed bug in cards relating to primary_key