added deletedatabase feature