Better sql, Diagram source fix