Enable code first migrations. Fix bug when creating database in transaction. Handle errors on startup.