Added get_major_version() to the database adapter.