Remove used files, put syncdb back into service, set env vars correctly