Delete cruft & setup database