Some compatibility changes, by no means final

OpenStats now works as expected, some cleanups are necessary, though.
Next step is to remove the old tables without the oh_ prefix.