Integration tests
This is gonna be painful... I'm currently leaning towards using docker or something similar (but hopefully less bad) to set up temporary database instances. Trying to create and delete temporary databases on a local postgres installation is also an option, but we have to be very careful to avoid clobbering existing real databases. Particularly if we want to do CI on the actual server or anything like that.