A ton of hacky code but it works. First time using core data and DB integration with native iOS.