database.cc: Fix mismatched `delete`