Added delete function to DatabaseEngine