Support non-mysql databases in stats module

This small change allows the module to report the version of non-mysql databases.