cleaned up core data
core data fills tableview with records
stored core data value which get incremented, will be used for an item pid later