Updated "local" DB option to if case

Adding one more db option-"local" for authentication