setDBOpt function

Set a database connection option.