automate sql configuring