queryForLong was deprecated.