Updated Delete DB function