Refine DB settings