doing db setting