code to remove db