To avoid triggering the database platform detection, we should use the platform more lazily instead of in the constructor in a few places.