How can I alter database bundles such as compression or any other bundle through Raven Studio or even via code?
You can modify them via the Database Settings, note that this is typically not a supported operations.
You can do that via the Raven/ActiveBundles
settings.