Database stuff and rm platform files