Modifying database, partially done.

I worked entirely on the deleting part and right now it doesn't see that
the item I want deleted is in the list. I'll fix it later.