Rev 118

Fix for bug I created where app would crash if the last item or the only
item in the current database was deleted.... Going to sleep now!