Remove duplicated Delete button in editor
Fix sql queries