can switch between db and azure