Database kind of works now