fix for deletes and gets
Merge pull request #398 from nlake44/db-fixes

fix for deletes and gets