SQL diagram update