No database-level where clauses were being used in many cases they should be.
Main fix is avoiding nullrefs being thrown when metadata isn't present on a beatmap (quite a common scenario).
Because we are not sharing a single context, we need to use Update to attach the entity to the local context.
This reverts commit 7cf5d63cd3.
7cf5d63cd3
Also simplify initial migration for BeatmapStore by just nuking everything.
Fixes flakey unit test.
Now stores store versions to the database itself.
Welcome back BeatmapManager
Also exit the import process before importing files to the file store to avoid incorrect reference count increments.
Also a bit of tidying up.
Hide database functionality at a lower level in preparation from eventually making it private.