added database collection switch