Make pathes to UI files and images relative, change DB scheme, save timestamps correctly