init CoreData context and other preparation