def get_schema_id_ver(db):
    """Get database user_version and split into (schema_id, schema_version).

    Args:
        db: DBDriver object.

    Returns:
        tuple of int schema_id and int version.
    """
    user_version = db.get_version()
    return user_version >> 16, user_version & 0xFFFF