Database stuff.
ffs
More interesting code that makes sense for nobody but me.