updated db doc, changed delete to detroy