add database delete fix