created delete method for db model