implement viewDatabase and deleteDatabase