added delete functionality to database page