fix a serious bug in the preindex refactor that broke syncdb for couchap...

...ps, mvp_apps, and fluff