Bugfix: rebuilding the db doesn't work on production.