Separate db setting process