Open Visual Studio and run the site again in debug mode after having installed and enabled the image gallery. For some reason, this updated the Orchard.sdf database.