Added edit command and reformatted embedded SQL code.