delete db method