removing legacy database