fixed delete for Nedb