updated db pass switch