Fix broken imports.
fix rebuild db script.