Everything is completely broken now, on account of what I had to do to make this compile to test database functionality. It'll be a long time until everything works again.