Create component for $wgDBname in mw.site.
When providing Lua modules for multiple wiki projects, local adaptions should be supported easily. Based on a short DB name the appropriate adjustments need to be accessed.
Currently there is available only a mw.site.server field.
if mw.site.server == "//de.wikipedia.org" or mw.site.server == "//de.wikipedia.beta.wmflabs.org" then site = "dewiki" end