Yes, you can access that DB from Background Agent!
A local database runs in the Windows Phone application’s process.
That means your database is not running unless any part of your app is actually running. It can be either you app or background agent created by that app.