database switching based on web api params started