REFACTOR - all CoreData stuff happens in DatabaseManager