Controller to delete and reset database