(bug) Fix issue where deletion from database crashes server

This was the cause of the database crash during our presentation.  With this edit, it's working perfectly now.