database: Remove bgCtx, add AE context to deleteIndex

Change-Id: I8e774af75dc291c5a5784d5f14b8a481593d4978
Reviewed-on: https://go-review.googlesource.com/44333
Reviewed-by: Stephen Weinberg <stephenmw@google.com>
3 files changed