moved DATABASE to /tmp/ for ease of testing