Revert "Remove unused code and clean up files and database"

This reverts commit 8b25265194baf8756ff71263001ee1f953a24829.
try removing things again without breaking the site