Improve database API to ensure schema is updated before queries can run and remove static injection of IDatabase into every implementation