remove usage of global db version, add helper function to check theme providers