fix SQL statement to edit configs #244