Allow app to switch between mock and real database