I would also recommend running the installation wizard. That way the database connection and file permissions can be setup correctly. After you run the installation, you can copy over your modified files (but don't overwrite the Connections or images folders). Then you should be able to add a new gallery and images.
-justin