Run the bbAppFx.Config.exe utility 'AddUsers' task from the application server to ensure that the correct ApplicationPoolIdentity is added to the database.