Handles data migrations for the underlying docstore database. Migrations are run in the order of bc_migrate/3 calls.