How to Build different APK files using different databases in Android using Gradle tool?

We have a platform to read poetry with a SQLITE Database say SHAKESPEARE.DB . We also have another poetry say Wordsworth.DB. So for each poetry database we want to create a separate application like Shakespeare.apk and wordsworth.apk.

During build we want to mention the Database and mention the name of the APK.

How do we Change Database during android build through gradle and deploy different APK’s
I would want to Create and Deploy Database specific APK using Gradle ?