Windows Phone Mango introduces several new features for multitasking and local databases. Multitasking allows applications to remain resident in memory while suspending threads and detaching resources. This enables fast app switching as well as running background tasks and agents. The local database is stored in isolated storage using SQL Server Compact Edition and accessed via LINQ to SQL. Developers define database schemas and query data using a code-first approach.