Fixed renaming problem with database. Items can now be renamed properly.
Made appropriate changes to left pane when deleting items.