Old syncdb code, see above :)