Minor fix

Mad the db_set_active a variable.