Rename DB operation fails intermittently when performed right after a "successful" import

Rename DB operation fails intermittently when performed right after a "successful" import. Also, passing the GalleryDBName parameter on every possible payload