Database now actually works (woo!)